home *** CD-ROM | disk | FTP | other *** search
/ SCI Games E3 2005 Press Kit (USA) / SCI Games E3 2005 Press Kit (USA).bin / runme_mac.swf / scripts / frame_52 / DoAction.as
Text File  |  2005-05-05  |  659b  |  23 lines

  1. function openMessageBox(target_mc)
  2. {
  3.    trace("start Messagebox");
  4.    target_mc.Open();
  5. }
  6. _global.GameSelected = new Number();
  7. MovieClip.prototype.Open = function()
  8. {
  9.    var _loc2_ = new Sound(target_mc);
  10.    _loc2_.attachSound("slide");
  11.    _loc2_.setVolume(100);
  12.    _loc2_.start();
  13.    new mx.transitions.Tween(this,"_y",mx.transitions.easing.Strong.easeOut,this._y,200,1,true);
  14. };
  15. MovieClip.prototype.Close = function()
  16. {
  17.    var _loc2_ = new Sound(target_mc);
  18.    _loc2_.attachSound("slide");
  19.    _loc2_.setVolume(100);
  20.    _loc2_.start();
  21.    new mx.transitions.Tween(this,"_y",mx.transitions.easing.Strong.easeIn,this._y,600,0.8,true);
  22. };
  23.